Skip to content

GitHub script #4

Merged
merged 25 commits into from
Aug 15, 2024
Merged

GitHub script #4

merged 25 commits into from
Aug 15, 2024

Conversation

arnol377
Copy link
Collaborator

No description provided.

@arnol377
Copy link
Collaborator Author

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Validation Output

Success! The configuration is valid.


Terraform Plan 📖success

Show Plan

terraform
module.setup_node.data.github_organization_teams.root_teams[0]: Reading...
module.elastic_beanstalk_nodejs.data.github_user.pull_request_bypassers["arnol377"]: Reading...
module.elastic_beanstalk_php.data.github_organization_teams.root_teams[0]: Reading...
module.beanstalk-demo.github_repository.repo: Refreshing state... [id=beanstalk-flask-demo]
module.elastic_beanstalk_nodejs.github_repository.repo: Refreshing state... [id=aws-beanstalk-nodejs]
module.elastic_beanstalk_php.github_repository.repo: Refreshing state... [id=aws-beanstalk-php]
module.elastic_beanstalk.github_repository.repo: Refreshing state... [id=aws-beanstalk]
module.asset_releases.github_repository.repo: Refreshing state... [id=image-pipeline-asset-releases]
module.setup_node.github_repository.repo: Refreshing state... [id=gh-actions-setup-node]
module.automation-repos.data.github_user.pull_request_bypassers["arnol377"]: Reading...
module.setup_node.data.github_organization_teams.root_teams[0]: Read complete after 2s [id=MDEyOk9yZ2FuaXphdGlvbjM1]
module.automation-repos.github_repository.repo: Refreshing state... [id=automation-repos]
module.beanstalk-demo.data.github_organization_teams.root_teams[0]: Reading...
module.elastic_beanstalk_php.data.github_organization_teams.root_teams[0]: Read complete after 4s [id=MDEyOk9yZ2FuaXphdGlvbjM1]
module.setup_terraform.github_repository.repo: Refreshing state... [id=gh-actions-setup-terraform]
module.elastic_beanstalk.data.github_organization_teams.root_teams[0]: Reading...
module.elastic_beanstalk_php.data.github_user.pull_request_bypassers["arnol377"]: Reading...
module.elastic_beanstalk_docker.data.github_user.pull_request_bypassers["arnol377"]: Reading...
module.automation-repos.data.github_organization_teams.root_teams[0]: Reading...
module.elastic_beanstalk_java.data.github_organization_teams.root_teams[0]: Reading...
module.beanstalk-demo.data.github_organization_teams.root_teams[0]: Read complete after 4s [id=MDEyOk9yZ2FuaXphdGlvbjM1]
module.beanstalk-demo.data.github_user.pull_request_bypassers["arnol377"]: Reading...
module.terraform-github-repo.data.github_organization_teams.root_teams[0]: Reading...
module.elastic_beanstalk.data.github_organization_teams.root_teams[0]: Read complete after 4s [id=MDEyOk9yZ2FuaXphdGlvbjM1]
module.ghe_runners.github_repository.repo: Refreshing state... [id=ghe-runners]
module.elastic_beanstalk_nodejs.data.github_user.pull_request_bypassers["arnol377"]: Still reading... [10s elapsed]
module.automation-repos.data.github_user.pull_request_bypassers["arnol377"]: Still reading... [10s elapsed]
module.automation-repos.data.github_organization_teams.root_teams[0]: Read complete after 6s [id=MDEyOk9yZ2FuaXphdGlvbjM1]
module.elastic_beanstalk_java.data.github_user.pull_request_bypassers["arnol377"]: Reading...
module.elastic_beanstalk_java.data.github_organization_teams.root_teams[0]: Read complete after 9s [id=MDEyOk9yZ2FuaXphdGlvbjM1]
module.setup_terraform.data.github_organization_teams.root_teams[0]: Reading...
module.asset_releases.data.github_user.pull_request_bypassers["arnol377"]: Reading...
module.elastic_beanstalk_nodejs.data.github_user.pull_request_bypassers["arnol377"]: Read complete after 15s [id=549]
module.terraform-github-repo.data.github_user.pull_request_bypassers["arnol377"]: Reading...
module.elastic_beanstalk_php.data.github_user.pull_request_bypassers["arnol377"]: Still reading... [10s elapsed]
module.elastic_beanstalk_docker.data.github_user.pull_request_bypassers["arnol377"]: Still reading... [10s elapsed]
module.terraform-github-repo.data.github_organization_teams.root_teams[0]: Read complete after 8s [id=MDEyOk9yZ2FuaXphdGlvbjM1]
module.ghe_runners.data.github_organization_teams.root_teams[0]: Reading...
module.beanstalk-demo.data.github_user.pull_request_bypassers["arnol377"]: Still reading... [10s elapsed]
module.elastic_beanstalk.data.github_user.pull_request_bypassers["arnol377"]: Reading...
module.setup_terraform.data.github_organization_teams.root_teams[0]: Read complete after 5s [id=MDEyOk9yZ2FuaXphdGlvbjM1]
module.terraform-github-repo.github_repository.repo: Refreshing state... [id=terraform-github-repo]
module.automation-repos.data.github_user.pull_request_bypassers["arnol377"]: Read complete after 20s [id=549]
module.elastic_beanstalk_nodejs.data.github_organization_teams.root_teams[0]: Reading...
module.ghe_runners.data.github_organization_teams.root_teams[0]: Read complete after 5s [id=MDEyOk9yZ2FuaXphdGlvbjM1]
module.elastic_beanstalk_java.github_repository.repo: Refreshing state... [id=aws-beanstalk-java]
module.elastic_beanstalk_java.data.github_user.pull_request_bypassers["arnol377"]: Still reading... [10s elapsed]
module.elastic_beanstalk_php.data.github_user.pull_request_bypassers["arnol377"]: Read complete after 17s [id=549]
module.elastic_beanstalk_docker.github_repository.repo: Refreshing state... [id=aws-beanstalk-docker]
module.elastic_beanstalk_docker.data.github_user.pull_request_bypassers["arnol377"]: Read complete after 17s [id=549]
module.elastic_beanstalk_docker.data.github_organization_teams.root_teams[0]: Reading...
module.asset_releases.data.github_organization_teams.root_teams[0]: Reading...
module.elastic_beanstalk_nodejs.data.github_organization_teams.root_teams[0]: Read complete after 3s [id=MDEyOk9yZ2FuaXphdGlvbjM1]
module.aws_image_pipeline.data.github_user.pull_request_bypassers["arnol377"]: Reading...
module.aws_image_pipeline.data.github_user.pull_request_bypassers["arnol377"]: Read complete after 0s [id=549]
module.aws_image_pipeline.github_repository.repo: Refreshing state... [id=aws-image-pipeline]
module.terraform_aws_image_pipeline.data.github_user.pull_request_bypassers["arnol377"]: Reading...
module.terraform_aws_image_pipeline.data.github_user.pull_request_bypassers["arnol377"]: Read complete after 0s [id=549]
module.terraform_aws_image_pipeline.github_repository.repo: Refreshing state... [id=terraform-aws-image-pipeline]
module.terraform_aws_image_pipeline.data.github_organization_teams.root_teams[0]: Reading...
module.beanstalk-demo.data.github_user.pull_request_bypassers["arnol377"]: Read complete after 17s [id=549]
module.aws_image_pipeline.data.github_organization_teams.root_teams[0]: Reading...
module.image_pipeline_repos["linux-image-pipeline"].github_repository.repo: Refreshing state... [id=linux-image-pipeline]
module.asset_releases.data.github_user.pull_request_bypassers["arnol377"]: Still reading... [10s elapsed]
module.image_pipeline_repos["image-pipeline-ansible-playbooks"].github_repository.repo: Refreshing state... [id=image-pipeline-ansible-playbooks]
module.terraform-github-repo.data.github_user.pull_request_bypassers["arnol377"]: Still reading... [10s elapsed]
module.terraform_aws_image_pipeline.data.github_organization_teams.root_teams[0]: Read complete after 1s [id=MDEyOk9yZ2FuaXphdGlvbjM1]
module.image_pipeline_repos["windows-image-pipeline"].github_repository.repo: Refreshing state... [id=windows-image-pipeline]
module.elastic_beanstalk_docker.data.github_organization_teams.root_teams[0]: Read complete after 4s [id=MDEyOk9yZ2FuaXphdGlvbjM1]
module.image_pipeline_repos["image-pipeline-goss-testing"].github_repository.repo: Refreshing state... [id=image-pipeline-goss-testing]
module.elastic_beanstalk_java.data.github_user.pull_request_bypassers["arnol377"]: Read complete after 16s [id=549]
module.image_pipeline_repos["image-pipeline-goss-testing"].data.github_organization_teams.root_teams[0]: Reading...
module.elastic_beanstalk.data.github_user.pull_request_bypassers["arnol377"]: Still reading... [10s elapsed]
module.aws_image_pipeline.data.github_organization_teams.root_teams[0]: Read complete after 3s [id=MDEyOk9yZ2FuaXphdGlvbjM1]
module.image_pipeline_repos["linux-image-pipeline"].data.github_organization_teams.root_teams[0]: Reading...
module.asset_releases.data.github_organization_teams.root_teams[0]: Read complete after 6s [id=MDEyOk9yZ2FuaXphdGlvbjM1]
module.image_pipeline_repos["windows-image-pipeline"].data.github_organization_teams.root_teams[0]: Reading...
module.asset_releases.data.github_user.pull_request_bypassers["arnol377"]: Read complete after 14s [id=549]
module.image_pipeline_repos["image-pipeline-ansible-playbooks"].data.github_organization_teams.root_teams[0]: Reading...
module.terraform-github-repo.data.github_user.pull_request_bypassers["arnol377"]: Read complete after 14s [id=549]
module.image_pipeline_repos["linux-image-pipeline"].data.github_user.pull_request_bypassers["arnol377"]: Reading...
module.elastic_beanstalk.data.github_user.pull_request_bypassers["arnol377"]: Read complete after 12s [id=549]
module.image_pipeline_repos["windows-image-pipeline"].data.github_user.pull_request_bypassers["arnol377"]: Reading...
module.image_pipeline_repos["image-pipeline-goss-testing"].data.github_organization_teams.root_teams[0]: Read complete after 3s [id=MDEyOk9yZ2FuaXphdGlvbjM1]
module.image_pipeline_repos["image-pipeline-ansible-playbooks"].data.github_user.pull_request_bypassers["arnol377"]: Reading...
module.image_pipeline_repos["linux-image-pipeline"].data.github_organization_teams.root_teams[0]: Read complete after 5s [id=MDEyOk9yZ2FuaXphdGlvbjM1]
module.image_pipeline_repos["image-pipeline-goss-testing"].data.github_user.pull_request_bypassers["arnol377"]: Reading...
module.image_pipeline_repos["windows-image-pipeline"].data.github_organization_teams.root_teams[0]: Read complete after 6s [id=MDEyOk9yZ2FuaXphdGlvbjM1]
module.beanstalk-demo.github_repository_collaborator.collaborators["lolli001"]: Refreshing state... [id=beanstalk-flask-demo:lolli001]
module.beanstalk-demo.github_repository_collaborator.collaborators["naray007"]: Refreshing state... [id=beanstalk-flask-demo:naray007]
module.beanstalk-demo.github_repository_collaborator.collaborators["gomez385"]: Refreshing state... [id=beanstalk-flask-demo:gomez385]
module.beanstalk-demo.github_repository_collaborator.collaborators["morga471"]: Refreshing state... [id=beanstalk-flask-demo:morga471]
module.elastic_beanstalk_nodejs.github_repository_collaborator.collaborators["naray007"]: Refreshing state... [id=aws-beanstalk-nodejs:naray007]
module.elastic_beanstalk_nodejs.github_repository_collaborator.collaborators["gomez385"]: Refreshing state... [id=aws-beanstalk-nodejs:gomez385]
module.elastic_beanstalk_nodejs.github_repository_collaborator.collaborators["morga471"]: Refreshing state... [id=aws-beanstalk-nodejs:morga471]
module.elastic_beanstalk_nodejs.github_repository_collaborator.collaborators["lolli001"]: Refreshing state... [id=aws-beanstalk-nodejs:lolli001]
module.elastic_beanstalk_php.github_repository_collaborator.collaborators["gomez385"]: Refreshing state... [id=aws-beanstalk-php:gomez385]
module.elastic_beanstalk_php.github_repository_collaborator.collaborators["naray007"]: Refreshing state... [id=aws-beanstalk-php:naray007]
module.elastic_beanstalk_php.github_repository_collaborator.collaborators["morga471"]: Refreshing state... [id=aws-beanstalk-php:morga471]
module.elastic_beanstalk_php.github_repository_collaborator.collaborators["lolli001"]: Refreshing state... [id=aws-beanstalk-php:lolli001]
module.elastic_beanstalk.github_repository_collaborator.collaborators["lolli001"]: Refreshing state... [id=aws-beanstalk:lolli001]
module.image_pipeline_repos["image-pipeline-ansible-playbooks"].data.github_organization_teams.root_teams[0]: Read complete after 8s [id=MDEyOk9yZ2FuaXphdGlvbjM1]
module.elastic_beanstalk.github_repository_collaborator.collaborators["morga471"]: Refreshing state... [id=aws-beanstalk:morga471]
module.elastic_beanstalk.github_repository_collaborator.collaborators["naray007"]: Refreshing state... [id=aws-beanstalk:naray007]
module.elastic_beanstalk.github_repository_collaborator.collaborators["gomez385"]: Refreshing state... [id=aws-beanstalk:gomez385]
module.asset_releases.github_repository_collaborator.collaborators["lolli001"]: Refreshing state... [id=image-pipeline-asset-releases:lolli001]
module.asset_releases.github_repository_collaborator.collaborators["naray007"]: Refreshing state... [id=image-pipeline-asset-releases:naray007]
module.asset_releases.github_repository_collaborator.collaborators["gomez385"]: Refreshing state... [id=image-pipeline-asset-releases:gomez385]
module.image_pipeline_repos["linux-image-pipeline"].data.github_user.pull_request_bypassers["arnol377"]: Read complete after 10s [id=549]
module.asset_releases.github_repository_collaborator.collaborators["morga471"]: Refreshing state... [id=image-pipeline-asset-releases:morga471]
module.image_pipeline_repos["windows-image-pipeline"].data.github_user.pull_request_bypassers["arnol377"]: Read complete after 10s [id=549]
module.setup_node.github_repository_collaborator.collaborators["naray007"]: Refreshing state... [id=gh-actions-setup-node:naray007]
module.setup_node.github_repository_collaborator.collaborators["lolli001"]: Refreshing state... [id=gh-actions-setup-node:lolli001]
module.image_pipeline_repos["image-pipeline-ansible-playbooks"].data.github_user.pull_request_bypassers["arnol377"]: Read complete after 9s [id=549]
module.setup_node.github_repository_collaborator.collaborators["gomez385"]: Refreshing state... [id=gh-actions-setup-node:gomez385]
module.image_pipeline_repos["image-pipeline-goss-testing"].data.github_user.pull_request_bypassers["arnol377"]: Read complete after 7s [id=549]
module.setup_node.github_repository_collaborator.collaborators["morga471"]: Refreshing state... [id=gh-actions-setup-node:morga471]
module.setup_terraform.github_repository_collaborator.collaborators["naray007"]: Refreshing state... [id=gh-actions-setup-terraform:naray007]
module.setup_terraform.github_repository_collaborator.collaborators["lolli001"]: Refreshing state... [id=gh-actions-setup-terraform:lolli001]
module.setup_terraform.github_repository_collaborator.collaborators["gomez385"]: Refreshing state... [id=gh-actions-setup-terraform:gomez385]
module.setup_terraform.github_repository_collaborator.collaborators["morga471"]: Refreshing state... [id=gh-actions-setup-terraform:morga471]
module.automation-repos.github_repository_collaborator.collaborators["naray007"]: Refreshing state... [id=automation-repos:naray007]
module.automation-repos.github_repository_collaborator.collaborators["gomez385"]: Refreshing state... [id=automation-repos:gomez385]
module.automation-repos.github_repository_collaborator.collaborators["morga471"]: Refreshing state... [id=automation-repos:morga471]
module.automation-repos.github_repository_collaborator.collaborators["lolli001"]: Refreshing state... [id=automation-repos:lolli001]
module.ghe_runners.github_repository_collaborator.collaborators["naray007"]: Refreshing state... [id=ghe-runners:naray007]
module.ghe_runners.github_repository_collaborator.collaborators["lolli001"]: Refreshing state... [id=ghe-runners:lolli001]
module.ghe_runners.github_repository_collaborator.collaborators["gomez385"]: Refreshing state... [id=ghe-runners:gomez385]
module.ghe_runners.github_repository_collaborator.collaborators["morga471"]: Refreshing state... [id=ghe-runners:morga471]
module.terraform-github-repo.github_repository_collaborator.collaborators["morga471"]: Refreshing state... [id=terraform-github-repo:morga471]
module.terraform-github-repo.github_repository_collaborator.collaborators["lolli001"]: Refreshing state... [id=terraform-github-repo:lolli001]
module.terraform-github-repo.github_repository_collaborator.collaborators["naray007"]: Refreshing state... [id=terraform-github-repo:naray007]
module.terraform-github-repo.github_repository_collaborator.collaborators["gomez385"]: Refreshing state... [id=terraform-github-repo:gomez385]
module.aws_image_pipeline.github_repository_collaborator.collaborators["morga471"]: Refreshing state... [id=aws-image-pipeline:morga471]
module.aws_image_pipeline.github_repository_collaborator.collaborators["naray007"]: Refreshing state... [id=aws-image-pipeline:naray007]
module.aws_image_pipeline.github_repository_collaborator.collaborators["gomez385"]: Refreshing state... [id=aws-image-pipeline:gomez385]
module.aws_image_pipeline.github_repository_collaborator.collaborators["lolli001"]: Refreshing state... [id=aws-image-pipeline:lolli001]
module.aws_image_pipeline.github_repository_file.managed_extra_files["terraform-apply.yaml"]: Refreshing state... [id=aws-image-pipeline/.github/workflows/terraform-apply.yaml]
module.aws_image_pipeline.github_repository_file.managed_extra_files["terraform-plan.yaml"]: Refreshing state... [id=aws-image-pipeline/.github/workflows/terraform-plan.yaml]
module.aws_image_pipeline.github_actions_variable.variable["terraform_version"]: Refreshing state... [id=aws-image-pipeline:terraform_version]
module.terraform_aws_image_pipeline.github_repository_collaborator.collaborators["naray007"]: Refreshing state... [id=terraform-aws-image-pipeline:naray007]
module.terraform_aws_image_pipeline.github_repository_collaborator.collaborators["gomez385"]: Refreshing state... [id=terraform-aws-image-pipeline:gomez385]
module.terraform_aws_image_pipeline.github_repository_collaborator.collaborators["lolli001"]: Refreshing state... [id=terraform-aws-image-pipeline:lolli001]
module.terraform_aws_image_pipeline.github_repository_collaborator.collaborators["morga471"]: Refreshing state... [id=terraform-aws-image-pipeline:morga471]
module.terraform_aws_image_pipeline.github_repository_file.managed_extra_files["terraform-plan.yaml"]: Refreshing state... [id=terraform-aws-image-pipeline/.github/workflows/terraform-plan.yaml]
module.terraform_aws_image_pipeline.github_actions_variable.variable["terraform_version"]: Refreshing state... [id=terraform-aws-image-pipeline:terraform_version]
module.elastic_beanstalk_java.github_repository_collaborator.collaborators["morga471"]: Refreshing state... [id=aws-beanstalk-java:morga471]
module.elastic_beanstalk_java.github_repository_collaborator.collaborators["gomez385"]: Refreshing state... [id=aws-beanstalk-java:gomez385]
module.elastic_beanstalk_java.github_repository_collaborator.collaborators["naray007"]: Refreshing state... [id=aws-beanstalk-java:naray007]
module.elastic_beanstalk_java.github_repository_collaborator.collaborators["lolli001"]: Refreshing state... [id=aws-beanstalk-java:lolli001]
module.elastic_beanstalk_docker.github_repository_collaborator.collaborators["gomez385"]: Refreshing state... [id=aws-beanstalk-docker:gomez385]
module.elastic_beanstalk_docker.github_repository_collaborator.collaborators["lolli001"]: Refreshing state... [id=aws-beanstalk-docker:lolli001]
module.elastic_beanstalk_docker.github_repository_collaborator.collaborators["morga471"]: Refreshing state... [id=aws-beanstalk-docker:morga471]
module.elastic_beanstalk_docker.github_repository_collaborator.collaborators["naray007"]: Refreshing state... [id=aws-beanstalk-docker:naray007]
module.image_pipeline_repos["image-pipeline-ansible-playbooks"].github_repository_collaborator.collaborators["morga471"]: Refreshing state... [id=image-pipeline-ansible-playbooks:morga471]
module.image_pipeline_repos["image-pipeline-ansible-playbooks"].github_repository_collaborator.collaborators["naray007"]: Refreshing state... [id=image-pipeline-ansible-playbooks:naray007]
module.image_pipeline_repos["image-pipeline-ansible-playbooks"].github_repository_collaborator.collaborators["garri325"]: Refreshing state... [id=image-pipeline-ansible-playbooks:garri325]
module.image_pipeline_repos["linux-image-pipeline"].github_repository_collaborator.collaborators["morga471"]: Refreshing state... [id=linux-image-pipeline:morga471]
module.image_pipeline_repos["image-pipeline-goss-testing"].github_repository_collaborator.collaborators["lolli001"]: Refreshing state... [id=image-pipeline-goss-testing:lolli001]
module.image_pipeline_repos["image-pipeline-ansible-playbooks"].github_repository_collaborator.collaborators["lolli001"]: Refreshing state... [id=image-pipeline-ansible-playbooks:lolli001]
module.image_pipeline_repos["windows-image-pipeline"].github_repository_collaborator.collaborators["naray007"]: Refreshing state... [id=windows-image-pipeline:naray007]
module.image_pipeline_repos["image-pipeline-goss-testing"].github_repository_collaborator.collaborators["morga471"]: Refreshing state... [id=image-pipeline-goss-testing:morga471]
module.image_pipeline_repos["windows-image-pipeline"].github_repository_collaborator.collaborators["garri325"]: Refreshing state... [id=windows-image-pipeline:garri325]
module.image_pipeline_repos["image-pipeline-goss-testing"].github_repository_collaborator.collaborators["naray007"]: Refreshing state... [id=image-pipeline-goss-testing:naray007]
module.image_pipeline_repos["linux-image-pipeline"].github_repository_collaborator.collaborators["lolli001"]: Refreshing state... [id=linux-image-pipeline:lolli001]
module.image_pipeline_repos["windows-image-pipeline"].github_repository_collaborator.collaborators["morga471"]: Refreshing state... [id=windows-image-pipeline:morga471]
module.image_pipeline_repos["linux-image-pipeline"].github_repository_collaborator.collaborators["gomez385"]: Refreshing state... [id=linux-image-pipeline:gomez385]
module.image_pipeline_repos["image-pipeline-goss-testing"].github_repository_collaborator.collaborators["gomez385"]: Refreshing state... [id=image-pipeline-goss-testing:gomez385]
module.image_pipeline_repos["image-pipeline-goss-testing"].github_repository_collaborator.collaborators["garri325"]: Refreshing state... [id=image-pipeline-goss-testing:garri325]
module.image_pipeline_repos["linux-image-pipeline"].github_repository_collaborator.collaborators["garri325"]: Refreshing state... [id=linux-image-pipeline:garri325]
module.image_pipeline_repos["image-pipeline-ansible-playbooks"].github_repository_collaborator.collaborators["gomez385"]: Refreshing state... [id=image-pipeline-ansible-playbooks:gomez385]
module.image_pipeline_repos["windows-image-pipeline"].github_repository_collaborator.collaborators["gomez385"]: Refreshing state... [id=windows-image-pipeline:gomez385]
module.image_pipeline_repos["windows-image-pipeline"].github_repository_collaborator.collaborators["lolli001"]: Refreshing state... [id=windows-image-pipeline:lolli001]
module.image_pipeline_repos["linux-image-pipeline"].github_repository_collaborator.collaborators["naray007"]: Refreshing state... [id=linux-image-pipeline:naray007]
module.image_pipeline_repos["windows-image-pipeline"].github_repository_file.managed_extra_files["s3_upload.yaml"]: Refreshing state... [id=windows-image-pipeline/.github/workflows/s3_upload.yaml]
module.image_pipeline_repos["image-pipeline-ansible-playbooks"].github_repository_file.managed_extra_files["s3_upload.yaml"]: Refreshing state... [id=image-pipeline-ansible-playbooks/.github/workflows/s3_upload.yaml]
module.image_pipeline_repos["image-pipeline-goss-testing"].github_repository_file.managed_extra_files["s3_upload.yaml"]: Refreshing state... [id=image-pipeline-goss-testing/.github/workflows/s3_upload.yaml]
module.image_pipeline_repos["linux-image-pipeline"].github_repository_file.managed_extra_files["s3_upload.yaml"]: Refreshing state... [id=linux-image-pipeline/.github/workflows/s3_upload.yaml]
module.aws_image_pipeline.github_branch_protection.main[0]: Refreshing state... [id=MDIwOkJyYW5jaFByb3RlY3Rpb25SdWxlMzM3]
module.terraform_aws_image_pipeline.github_branch_protection.main[0]: Refreshing state... [id=MDIwOkJyYW5jaFByb3RlY3Rpb25SdWxlMzQ1]
module.image_pipeline_repos["windows-image-pipeline"].github_branch_protection.main[0]: Refreshing state... [id=MDIwOkJyYW5jaFByb3RlY3Rpb25SdWxlMzM4]
module.image_pipeline_repos["image-pipeline-ansible-playbooks"].github_branch_protection.main[0]: Refreshing state... [id=MDIwOkJyYW5jaFByb3RlY3Rpb25SdWxlMzM5]
module.image_pipeline_repos["image-pipeline-goss-testing"].github_branch_protection.main[0]: Refreshing state... [id=MDIwOkJyYW5jaFByb3RlY3Rpb25SdWxlMzM2]
module.image_pipeline_repos["linux-image-pipeline"].github_branch_protection.main[0]: Refreshing state... [id=MDIwOkJyYW5jaFByb3RlY3Rpb25SdWxlMzQy]

Note: Objects have changed outside of Terraform

Terraform detected the following changes made outside of Terraform since the
last "terraform apply" which may have affected this plan:

  # module.automation-repos.github_repository.repo has changed
  ~ resource "github_repository" "repo" {
      ~ etag                        = "W/\"32e48a49ea991233149c853125174d156ecad1729f0ae1f038956a2a8e8a7210\"" -> "W/\"2ee1d345c7e6ac8a3c6d012aca6b9bfc68ebfe353f8058b368af2c65bc8dd9b3\""
      ~ has_issues                  = false -> true
        id                          = "automation-repos"
        name                        = "automation-repos"
        # (36 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.aws_image_pipeline.github_repository.repo has changed
  ~ resource "github_repository" "repo" {
      ~ etag                        = "W/\"aa8c4c58aa21a813466d923f5008290b7b965006b8b9321d21a1c77daac17513\"" -> "W/\"d1d0223a7fd056c01c0101fa925cc55212878761c1af7daf6eaa595e8a000f16\""
        id                          = "aws-image-pipeline"
        name                        = "aws-image-pipeline"
        # (37 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.image_pipeline_repos["image-pipeline-ansible-playbooks"].github_repository.repo has changed
  ~ resource "github_repository" "repo" {
      ~ etag                        = "W/\"b308b3680826187b1a68e9aa1b2021c75ab058e86b2ebe6ae9d7133d64539d60\"" -> "W/\"cd90fa9d2a0ca2c0448e84609b271eb6d682c54af4b2ab1c7db23c71f5e1961f\""
        id                          = "image-pipeline-ansible-playbooks"
        name                        = "image-pipeline-ansible-playbooks"
        # (37 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.image_pipeline_repos["image-pipeline-goss-testing"].github_repository.repo has changed
  ~ resource "github_repository" "repo" {
      ~ etag                        = "W/\"30b3191fccabe736368ef95563b7b6478cac6241142cf96ac7f1c06f0526d2c1\"" -> "W/\"178916c12d6cc8b84b077abc8847202348195059df2a6b8beb8d0ca63cd37269\""
        id                          = "image-pipeline-goss-testing"
        name                        = "image-pipeline-goss-testing"
        # (37 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.image_pipeline_repos["linux-image-pipeline"].github_repository.repo has changed
  ~ resource "github_repository" "repo" {
      ~ etag                        = "W/\"6c324427051867569714f2a6a014d68f7cfaa570925971acc55c5caafcd588ab\"" -> "W/\"e8e73903ecaed8bef0e56bd075ae8ba878ce09f08a2e6799762fa6ba76069b17\""
        id                          = "linux-image-pipeline"
        name                        = "linux-image-pipeline"
        # (37 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.image_pipeline_repos["windows-image-pipeline"].github_repository.repo has changed
  ~ resource "github_repository" "repo" {
      ~ etag                        = "W/\"43724fad945c14a0b16393ed32b6d1a806bee7bf77e8864ab393382d4d0f3e74\"" -> "W/\"2d86b6d8de0a73c3a51dc5a7b0fdd1eeda1d62d6a7e1884517dfad84c52ca4c7\""
        id                          = "windows-image-pipeline"
        name                        = "windows-image-pipeline"
        # (37 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

  # module.terraform_aws_image_pipeline.github_repository.repo has changed
  ~ resource "github_repository" "repo" {
      ~ etag                        = "W/\"9185c3d7bbffdebffb8b4048c90180f0e55afaac4aaf0fab69a130c262a3334b\"" -> "W/\"bc8032f3a2f0c25810e1826f7b0a3714ad54e94d12a3f1c93f86fb2cb1e6a364\""
        id                          = "terraform-aws-image-pipeline"
        name                        = "terraform-aws-image-pipeline"
        # (37 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }


Unless you have made equivalent changes to your configuration, or ignored the
relevant attributes using ignore_changes, the following plan may include
actions to undo or respond to these changes.

─────────────────────────────────────────────────────────────────────────────

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # module.aws_image_pipeline.github_repository_file.managed_extra_files["terraform-plan.yaml"] will be updated in-place
  ~ resource "github_repository_file" "managed_extra_files" {
      ~ content             = <<-EOT
            # This is a basic workflow to help you get started with Actions
            
            name: Terraform Plan
            
            
            # Controls when the workflow will run
            on:
              pull_request:
            
            # A workflow run is made up of one or more jobs that can run sequentially or in parallel
            jobs:
              # This workflow contains a single job called "build"
              build:
                # The type of runner that the job will run on
                runs-on: [ aws-image-pipeline ]
                env:
                  AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
                  AWS_ACCESS_KEY_ID: "${{ vars.AWS_ACCESS_KEY_ID }}"
                  AWS_SESSION_TOKEN: "${{ secrets.AWS_SESSION_TOKEN }}"
                  
            
                # Steps represent a sequence of tasks that will be executed as part of the job
                steps:
                  # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
                  - uses: actions/checkout@v3
          +         with:
          +           ref: ${{ github.head_ref }}
          +           token: ${{ secrets.GH_TOKEN }}
            
          - 
                  - uses: CSVD/gh-actions-setup-node@v3
                    with:
                       node-version: 16
                      
                  - uses: CSVD/gh-actions-setup-terraform@v2
                    with:
                      terraform_version: ${{ vars.terraform_version }}
          -           
          + 
                  - name: Terraform Format
                    id: fmt
          -         continue-on-error: true
          -         
                    run: |
          -           terraform fmt -check
          +           terraform fmt
          +           if ! git diff-index --quiet HEAD; then 
          +             git config --global user.name 'arnol377'
          +             git config --global user.email 'david.j.arnold.jr@census.gov'
          +             git commit -am "Autoformatting TF Code"
          +             git push
          +             echo "auto_format=true" >> $GITHUB_ENV 
          +           fi
            
          +       - name: Autoformat Halt
          +         if: env.auto_format == 'true'
          +         run: exit 0
          + 
                  - name: Terraform Init
                    id: init
                    
                    run: terraform init -upgrade
            
                  - name: Terraform Validate
                    id: validate
                    
                    run: terraform validate
            
                  - name: Terraform Plan
                    id: plan
                    
                    run: terraform plan
                    continue-on-error: true
            
          -       - uses: actions/github-script@v7
          +       - name: Update Pull Request
          +         uses: CSVD/gh-actions-github-script@v6
                    if: github.event_name == 'pull_request'
          -         env:
          -           PLAN: "terraform\n${{ steps.plan.outputs.stdout }}"
                    with:
                      github-token: ${{ secrets.GH_TOKEN }}
                      script: |
          -             // 1. Retrieve existing bot comments for the PR
          -             const { data: comments } = await github.rest.issues.listComments({
          -               owner: context.repo.owner,
          -               repo: context.repo.repo,
          -               issue_number: context.issue.number,
          -             })
          -             const botComment = comments.find(comment => {
          -               return comment.user.type === 'Bot' && comment.body.includes('Terraform Format and Style')
          -             })
          - 
          -             // 2. Prepare format of the comment
                        const output = `#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\`
                        #### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\`
                        #### Terraform Validation 🤖\`${{ steps.validate.outcome }}\`
          -             <details><summary>Validation Output</summary>
          +             #### Terraform Plan:
          +             ${{ steps.plan.outcome }}
          +             *Pushed by: @${{ github.actor }}, Action: \`${{ github.event_name }}\`*`;
            
          -             \`\`\`\n
          -             ${{ steps.validate.outputs.stdout }}
          -             \`\`\`
          - 
          -             </details>
          - 
          -             #### Terraform Plan 📖\`${{ steps.plan.outcome }}\`
          - 
          -             <details><summary>Show Plan</summary>
          - 
          -             \`\`\`\n
          -             ${process.env.PLAN}
          -             \`\`\`
          - 
          -             </details>
          - 
          -             *Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`, Working Directory: \`${{ env.tf_actions_working_dir }}\`, Workflow: \`${{ github.workflow }}\`*`;
          - 
          -             // 3. If we have a comment, update it, otherwise create a new one
          -             if (botComment) {
          -               github.rest.issues.updateComment({
          -                 owner: context.repo.owner,
          -                 repo: context.repo.repo,
          -                 comment_id: botComment.id,
          -                 body: output
          -               })
          -             } else {
          -               github.rest.issues.createComment({
          -                 issue_number: context.issue.number,
          -                 owner: context.repo.owner,
          -                 repo: context.repo.repo,
          -                 body: output
          -               })
          -             }
          +             github.rest.issues.createComment({
          +               issue_number: context.issue.number,
          +               owner: context.repo.owner,
          +               repo: context.repo.repo,
          +               body: output
          +             })
        EOT
        id                  = "aws-image-pipeline/.github/workflows/terraform-plan.yaml"
        # (8 unchanged attributes hidden)
    }

  # module.terraform_aws_image_pipeline.github_repository_file.managed_extra_files["terraform-plan.yaml"] will be updated in-place
  ~ resource "github_repository_file" "managed_extra_files" {
      ~ content             = <<-EOT
            # This is a basic workflow to help you get started with Actions
            
            name: Terraform Plan
            
            
            # Controls when the workflow will run
            on:
              pull_request:
            
            # A workflow run is made up of one or more jobs that can run sequentially or in parallel
            jobs:
              # This workflow contains a single job called "build"
              build:
                # The type of runner that the job will run on
                runs-on: [ aws-image-pipeline ]
                env:
                  AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
                  AWS_ACCESS_KEY_ID: "${{ vars.AWS_ACCESS_KEY_ID }}"
                  AWS_SESSION_TOKEN: "${{ secrets.AWS_SESSION_TOKEN }}"
                  
            
                # Steps represent a sequence of tasks that will be executed as part of the job
                steps:
                  # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
                  - uses: actions/checkout@v3
          +         with:
          +           ref: ${{ github.head_ref }}
          +           token: ${{ secrets.GH_TOKEN }}
            
          - 
                  - uses: CSVD/gh-actions-setup-node@v3
                    with:
                       node-version: 16
                      
                  - uses: CSVD/gh-actions-setup-terraform@v2
                    with:
                      terraform_version: ${{ vars.terraform_version }}
          -           
          + 
                  - name: Terraform Format
                    id: fmt
          -         continue-on-error: true
          -         
          -         working-directory: ./examples
          -         
                    run: |
          -           terraform fmt -check
          +           terraform fmt
          +           if ! git diff-index --quiet HEAD; then 
          +             git config --global user.name 'arnol377'
          +             git config --global user.email 'david.j.arnold.jr@census.gov'
          +             git commit -am "Autoformatting TF Code"
          +             git push
          +             echo "auto_format=true" >> $GITHUB_ENV 
          +           fi
            
          +       - name: Autoformat Halt
          +         if: env.auto_format == 'true'
          +         run: exit 0
          + 
                  - name: Terraform Init
                    id: init
                    
                    working-directory: ./examples
                    
                    run: terraform init -upgrade
            
                  - name: Terraform Validate
                    id: validate
                    
                    working-directory: ./examples
                    
                    run: terraform validate
            
                  - name: Terraform Plan
                    id: plan
                    
                    working-directory: ./examples
                    
                    run: terraform plan
                    continue-on-error: true
            
          -       - uses: actions/github-script@v7
          +       - name: Update Pull Request
          +         uses: CSVD/gh-actions-github-script@v6
                    if: github.event_name == 'pull_request'
          -         env:
          -           PLAN: "terraform\n${{ steps.plan.outputs.stdout }}"
                    with:
                      github-token: ${{ secrets.GH_TOKEN }}
                      script: |
          -             // 1. Retrieve existing bot comments for the PR
          -             const { data: comments } = await github.rest.issues.listComments({
          -               owner: context.repo.owner,
          -               repo: context.repo.repo,
          -               issue_number: context.issue.number,
          -             })
          -             const botComment = comments.find(comment => {
          -               return comment.user.type === 'Bot' && comment.body.includes('Terraform Format and Style')
          -             })
          - 
          -             // 2. Prepare format of the comment
                        const output = `#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\`
                        #### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\`
                        #### Terraform Validation 🤖\`${{ steps.validate.outcome }}\`
          -             <details><summary>Validation Output</summary>
          +             #### Terraform Plan:
          +             ${{ steps.plan.outcome }}
          +             *Pushed by: @${{ github.actor }}, Action: \`${{ github.event_name }}\`*`;
            
          -             \`\`\`\n
          -             ${{ steps.validate.outputs.stdout }}
          -             \`\`\`
          - 
          -             </details>
          - 
          -             #### Terraform Plan 📖\`${{ steps.plan.outcome }}\`
          - 
          -             <details><summary>Show Plan</summary>
          - 
          -             \`\`\`\n
          -             ${process.env.PLAN}
          -             \`\`\`
          - 
          -             </details>
          - 
          -             *Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`, Working Directory: \`${{ env.tf_actions_working_dir }}\`, Workflow: \`${{ github.workflow }}\`*`;
          - 
          -             // 3. If we have a comment, update it, otherwise create a new one
          -             if (botComment) {
          -               github.rest.issues.updateComment({
          -                 owner: context.repo.owner,
          -                 repo: context.repo.repo,
          -                 comment_id: botComment.id,
          -                 body: output
          -               })
          -             } else {
          -               github.rest.issues.createComment({
          -                 issue_number: context.issue.number,
          -                 owner: context.repo.owner,
          -                 repo: context.repo.repo,
          -                 body: output
          -               })
          -             }
          +             github.rest.issues.createComment({
          +               issue_number: context.issue.number,
          +               owner: context.repo.owner,
          +               repo: context.repo.repo,
          +               body: output
          +             })
        EOT
        id                  = "terraform-aws-image-pipeline/.github/workflows/terraform-plan.yaml"
        # (8 unchanged attributes hidden)
    }

Plan: 0 to add, 2 to change, 0 to destroy.

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.

Pusher: @arnol377, Action: pull_request, Workflow: Terraform Plan

@arnol377 arnol377 merged commit 1773555 into main Aug 15, 2024
1 check passed
@arnol377 arnol377 deleted the github_script branch August 15, 2024 20:02
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
1 participant